﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OverridedDBCurrency.cs" company="">
//   
// </copyright>
// <summary>
//   The overrided db currency.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace Systemathics.UserControls
{
    /// <summary>
    /// The overrided db currency.
    /// </summary>
    internal sealed class OverridedDBCurrency
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OverridedDBCurrency"/> class.
        /// </summary>
        public OverridedDBCurrency()
        {
            ReferencePrice = 1;
        }

        /// <summary>
        /// Gets or sets ID.
        /// </summary>
        [Browsable(false)]
        public Guid? ID { get; set; }

        /// <summary>
        /// Gets or sets InstrumentsCollection.
        /// </summary>
        [TypeConverter(typeof (InstrumentListConverter))]
// public String InstrumentName { get; set; }
            public IEnumerable<string> InstrumentsCollection { get; set; }

        /// <summary>
        /// Gets or sets Ticker.
        /// </summary>
        public string Ticker { get; set; }

        /// <summary>
        /// Gets or sets Country.
        /// </summary>
        public string Country { get; set; }

        /// <summary>
        /// Gets or sets CurrencyName.
        /// </summary>
        public string CurrencyName { get; set; }

        /// <summary>
        /// Gets or sets ReferencePrice.
        /// </summary>
        public double ReferencePrice { get; set; }
    }
}